#include "FastQueue.h"
#include <iostream>

int
main(int argc, char ** argv)
{
	FastQueue<int *> myQueue;
	int * tempPtr = NULL;
	//std::cout << "Enqueues:" << std::endl;
	for(int i = 0; i < 5; ++i) {
		tempPtr = new int(i);
		std::cout << tempPtr << std::endl;
		myQueue.enqueue(tempPtr);
	}
	//std::cout << "Dequeues:" << std::endl;
	for(int i = 0; i< 5; ++i) {
		tempPtr = myQueue.dequeue();
		std::cout << tempPtr <<std::endl;
		delete tempPtr;
	}
	return 0;
}
